package com.gulimall.common.constant;

/**
 * @Author by董江
 * @Tool Intellij IDEA
 * @Classname ProductConstant
 * @Date 2022/5/1 18:24
 */
public class ProductConstant {
    /**
     * 属性类型枚举类
     */
    public enum AttrEnum {
        ATTR_TYPE_BASE(1, "基本属性"),
        ATTR_TYPE_SALE(0, "销售属性"),
        IS_SEARCH_TYPE(1,"可以被检索"),
        NOT_SEARCH_TYPE(0,"不可以被检索");

        private final int code;
        private final String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum SkuEnum {
        SALE_COUNT(0,"默认销售量");

        private final int code;
        private final String msg;

        SkuEnum(int code, String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum StatusEnum {
        NEW_CREATE(0,"新建"),
        SPU_UP(1,"上架"),
        SPU_DOWN(2,"下架");

        private final int code;
        private final String msg;

        StatusEnum(int code, String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
